package ma.jeetconsulting.pocs.domain;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
import javax.persistence.Table;



@Entity
@Table(name="t_toDoResolver")
public class ToDoResolver implements RuleEngineObject {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 8887363384739965537L;
	
	private Long id;
	private Dependency firstDependency;
	private Dependency secondDependency;
	private Alert whatToDo;
	
	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	@ManyToOne
	public Dependency getFirstDependency() {
		return firstDependency;
	}
	
	public void setFirstDependency(Dependency firstDependency) {
		this.firstDependency = firstDependency;
	}
	
	@ManyToOne
	public Dependency getSecondDependency() {
		return secondDependency;
	}
	
	public void setSecondDependency(Dependency secondDependency) {
		this.secondDependency = secondDependency;
	}
	
	@ManyToOne
	public Alert getWhatToDo() {
		return whatToDo;
	}
	
	public void setWhatToDo(Alert whatToDo) {
		this.whatToDo = whatToDo;
	}
	
	

}
